package models

import (
	"goapp-web-server/app/utils/orm"
)

type CmsZan struct {
	Model  `xorm:"extends"`
	Type   int8   `json:"type" xorm:"type default '0' ENUM('0','1')"`
	TypeId int32  `json:"type_id" xorm:"type_id"`
	UserId string `json:"user_id" xorm:"user_id"`
	Status string `json:"status" xorm:"status default '0' ENUM('0','1')"`
}

func (u CmsZan) TableName() string {
	return "cms_zan"
}

func init() {
	orm.RegisterModel(&CmsZan{})
}
